﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gnosis.Babel;

namespace Gnosis.SQLite
{
    public class TextLiteral
        : TextValue
    {
        public TextLiteral(string value)
            : base(GetLiteralString(value))
        {
        }

        private static string GetLiteralString(string value)
        {
            if (value == null)
                return "NULL";
            else return string.Format("'{0}'", value);
        }
    }
}
